'use strict'

module.exports = function (app) {
  
  if (app.config.http2) {

    //在http2服务，必须在session中进行设置才可以生效。
    app.on('session', session => {
      /* console.log('localSetting:', session.localSettings,
              '\nremoteSetting:', session.remoteSettings) */

      session.settings(app.config.server.settings, (err, setting, dura) => {
        /* if (app.config.debug) {
          console.log('localSetting:', session.localSettings,
                  '\nremoteSetting:', session.remoteSettings)
        } */
      })

    })

  }

}
